6a2f71db25adcb3d87504a7fb175183531755009,opennms-webapp/src/main/java/org/opennms/web/map/view/VLink.java,VLink,equals,#Object#,56

Before Change


	public boolean equals(Object otherLink) {
		VLink link = (VLink) otherLink;
		if (((this.elem1.getId() == link.getFirst().getId())
				&& this.elem1.getType().equals(link.getFirst().getType())
				&& (this.elem2.getId() == link.getSecond().getId()) && this.elem2
				.getType().equals(link.getSecond().getType()))
				|| (this.elem1.getId() == link.getSecond().getId()
						&& this.elem1.getType().equals(
								link.getSecond().getType())
						&& this.elem2.getId() == link.getFirst().getId() && (this.elem2
						.getType().equals(link.getFirst().getType()))))
			return true;
		return false;
	}

After Change


	}

	public boolean equals(Object otherLink) {
		if (!(otherLink instanceof VLink)) return false;
		VLink link = (VLink) otherLink;
		if (
		 (this.elem1.hasSameIdentifier(link.getFirst()) && this.elem2.hasSameIdentifier(link.getSecond()))
			||
		(this.elem2.hasSameIdentifier(link.getFirst()) && this.elem1.hasSameIdentifier(link.getSecond()))
		) return true;
		return false;
	}